package com.htl.线程.sleep_wait;

public class Sleep_01 {
    public static void main(String[] args) {
        new Thread(()->{
            for (int i = 0; i < 50; i++) {
                System.out.println("thread线程-------");
            }
        }).start();

        try {
            //当主线程休眠
            Thread.sleep(4000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        for (int i = 0; i < 50; i++) {
            System.out.println("=========main");
        }
    }
}
